/*
 * @Author: anxia.ack anchenkai@come-future.com
 * @Date: 2025-04-02 15:50:38
 * @LastEditors: anxia.ack anchenkai@come-future.com
 * @LastEditTime: 2025-04-05 14:36:34
 * @FilePath: /free-learning/src/api/system/consultant.ts
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import request from "@/utils/request";
import type { UserProfileForm } from "./user";

const CONSULTANT_BASE_URL = "/api/v1/consultant";

const ConsultantAPI = {
  /**
   * 更新咨询师信息
   * @param data 咨询师信息
   */
  updateConsultant(data: UserProfileForm) {
    return request({
      url: `${CONSULTANT_BASE_URL}/update`,
      method: "put",
      data: data,
    });
  },
};

export default ConsultantAPI;
